package com.wrb.entity;
/**
 * @author haixingchen
 */
public enum ResponseStatus {
    /**成功*/
    SUCCESS("00000", "成功"),
    /**用户无权限*/
    PERMISION_USER("00001", "用户无权限"),
    /**没有查询到设备*/
    NOT_DEVICE("00020", "没有查询到设备"),
    /**超过最大条数1000条*/
    OUT_LIMIT("00021", "超过最大条数1000条"),
    /**台区已上锁存在编辑版*/
    LOCK_STATE("00022", "台区已上锁存在编辑版"),

    /**工单已归档**/
    CHANGE_IS_FILED("00005", "工单已归档"),
    /**工单统计失败*/
    CHANGE_ORDER("00023", "工单查询失败"),
    /**台区数据保存编辑版失败*/
    EDITDATA_ERROR("00024", "编辑版数据报错失败"),
    /**工单统计查询失败*/
    STATISTICS_ERROR("00025", "工单统计查询失败"),
    /**工单统计查询失败*/
    NOT_SELECT("00026", "没有查询到数据"),
    /**系统错误*/
    SYSTEM_ERROR("00002", "系统错误"),
    /**有必填项未传*/
    FILED_ERROR("00003", "有必填项未传"),
    /**用户未登录*/
    NOLOGIN_USER("00004", "用户未登录"),
    /**其他错误*/
    OTHERS_ERROR("99999", "其他错误");

    String code;
    String msg;

    private ResponseStatus(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return this.code;
    }

    public ResponseStatus setCode(String code) {
        this.code = code;
        return this;
    }

    public ResponseStatus setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public String getMsg() {
        return this.msg;
    }
}
